package cc.stonemarket.caricature.util;

import android.os.Environment;

public final class SDCardUtil {

	private SDCardUtil() { }
	
	/**判断SD卡是否存在 */
	public static boolean isSDCardExist() {
		return Environment.getExternalStorageState().equals( Environment.MEDIA_MOUNTED );
	}

	/**获取SD卡根目录 */
	public static String getSDRootDir() {
		String SDRootDir=null;
		if (SDCardUtil.isSDCardExist()) {
			SDRootDir = Environment.getExternalStorageDirectory().toString();
		}
		return SDRootDir;
	}
}
